\section{avrlibdefs.h File Reference}
\label{avrlibdefs_8h}\index{avrlibdefs.h@{avrlibdefs.h}}
AVRlib global defines and macros.  


\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \textbf{outb}(addr, data)~addr = (data)\label{avrlibdefs_8h_e561444dd5a69b5ac942afb6abaaa18f}

\item 
\#define \textbf{inb}(addr)~(addr)\label{avrlibdefs_8h_6324892f8728986cf9ff0a153210c670}

\item 
\#define \textbf{BV}(bit)~(1$<$$<$(bit))\label{avrlibdefs_8h_0188837b5508334447b93ad7b944a0e9}

\item 
\#define \textbf{cbi}(reg, bit)~reg \&= $\sim$(BV(bit))\label{avrlibdefs_8h_a088c60e054842f8d77d5bcd8a863a81}

\item 
\#define \textbf{sbi}(reg, bit)~reg $|$= (BV(bit))\label{avrlibdefs_8h_f99479fff216597a9fa50b0187920509}

\item 
\#define \textbf{cli}()~\_\-\_\-asm\_\-\_\- \_\-\_\-volatile\_\-\_\- (\char`\"{}cli\char`\"{} ::)\label{avrlibdefs_8h_68c330e94fe121eba993e5a5973c3162}

\item 
\#define \textbf{sei}()~\_\-\_\-asm\_\-\_\- \_\-\_\-volatile\_\-\_\- (\char`\"{}sei\char`\"{} ::)\label{avrlibdefs_8h_ad5ebd34cb344c26ac87594f79b06b73}

\item 
\#define \textbf{GNUC\_\-PACKED}~\_\-\_\-attribute\_\-\_\-((packed))\label{avrlibdefs_8h_83634509fe5a3541db37e16a1964d0df}

\item 
\#define \textbf{DDR}(x)~((x)-1)\label{avrlibdefs_8h_cbe348573e1b5adccdc7bcf157dc6425}

\item 
\#define \textbf{PIN}(x)~((x)-2)\label{avrlibdefs_8h_d7581da21e9fd6fd6f6920dd68d1c782}

\item 
\#define \textbf{MIN}(a, b)~((a$<$b)?(a):(b))\label{avrlibdefs_8h_3acffbd305ee72dcd4593c0d8af64a4f}

\item 
\#define \textbf{MAX}(a, b)~((a$>$b)?(a):(b))\label{avrlibdefs_8h_fa99ec4acc4ecb2dc3c2d05da15d0e3f}

\item 
\#define \textbf{ABS}(x)~((x$>$0)?(x):(-x))\label{avrlibdefs_8h_996f7be338ccb40d1a2a5abc1ad61759}

\item 
\#define \textbf{PI}~3.14159265359\label{avrlibdefs_8h_598a3330b3c21701223ee0ca14316eca}

\end{CompactItemize}


\subsection{Detailed Description}
AVRlib global defines and macros. 

\begin{Desc}
\item[Author:]Pascal Stang and Mikael Larsmark, SM2WMV \end{Desc}
\begin{Desc}
\item[Date:]2008-04-13 \end{Desc}


Definition in file {\bf avrlibdefs.h}.